home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / etc / rc3.z / rc3
Text File  |  1992-04-03  |  444b  |  31 lines

  1. #! /bin/sh
  2. #Tag 0x00000f00
  3. #ident "$Revision: 1.8 $"
  4.  
  5. #    "Run Commands" executed when the system is changing to init state 3,
  6. #    same as state 2 (multi-user) but with remote file sharing.
  7. set `who -r`
  8. if [ -d /etc/rc3.d ]
  9. then
  10.     for f in /etc/rc3.d/K*
  11.     {
  12.         if [ -s ${f} ]
  13.         then
  14.             /bin/sh ${f} stop
  15.         fi
  16.     }
  17.  
  18.     for f in /etc/rc3.d/S*
  19.     {
  20.         if [ -s ${f} ]
  21.         then
  22.             /bin/sh ${f} start
  23.         fi
  24.     }
  25. fi
  26. if [ $9 = 'S' ]
  27. then
  28.     echo '
  29. The system is ready.'
  30. fi
  31.